package astri.pdcontrol.commclient;

import static  astri.pdcontrol.commclient.AstEndian.*;

/**
 * Class for define all static values
 * @author hspoon @ASTRI
 *
 */
public final class defines {
                                                        		
	public static final int AST_COMM_THREAD_SLEEP				= 500; //ms

	/* AstCommClientConfig */
	public static final int ASTCOMM_MESSAGE_MAGIC 				= 0xA0C0FFEE;
	public static final String ASTCOMM_DEFAULT_DISCOVERYGROUP 	= "239.168.1.2";
	public static final int ASTCOMM_DEFAULT_DISCOVERYPORT		= 5012;
	public static final int ASTCOMM_DEFAULT_DISCOVERYINTERVAL 	= 5000;
	public static final int ASTCOMM_DEFAULT_CLIENT_TIMEOUT 		= 0;
	public static final int ASTCOMM_DEFAULT_SERVER_TIMEOUT 		= 3000;
	public static final int ASTCOMM_DEFAULT_ENDIAN 				= AST_LITTLEENDIAN;
	
	/*AstCommClient message id */
	public static final int ASTCOMM_RESPONSE_ENUM_BASE			= 0x40001000;
	public static final int ASTCOMM_REQUEST_ENUM_BASE			= 0x00001000;
	//REQUEST
	public static final int ASTCOMM_DISCOVER					= ASTCOMM_REQUEST_ENUM_BASE  + 0;  
	public static final int ASTCOMM_CLIENTKEEPALIVE				= ASTCOMM_REQUEST_ENUM_BASE  + 1;
	//RESPONSE
	public static final int ASTCOMM_RESPONSE_DISCOVER			= ASTCOMM_RESPONSE_ENUM_BASE + 0; 
	public static final int ASTCOMM_SERVERKEEPALIVE				= ASTCOMM_RESPONSE_ENUM_BASE + 1;
	public static final int ASTCOMM_SERVERBUSY					= ASTCOMM_RESPONSE_ENUM_BASE + 2;

	private defines()
	{
	}
}

